<div class="container-fluid">
  <%= form_for @driver, :html => { :class => 'form-horizontal' } do |f| %>
  <legend><%= controller.action_name.capitalize %> Driver</legend>
  <div class="row-fluid">
    <div class="span12">
      <!--
      <div class="row-fluid">
        <div class="span12 bgcolor">
          <div class="alert alert-error">
            <a href="#" class="close" data-dismiss="alert">×</a>
            Error Messages.
          </div>
        </div>
      </div> -->
      <div class="row-fluid">
        <div class="span6">
          <label><%=t :driver_name %></label>
          <%= f.text_field :name, :class => 'span12' %>
        </div>
        <!--/span-->
        <div class="span6">
          <label>Email</label>
          <%= f.text_field :email, :class => 'span12' %>
        </div>
        <!--/span-->
      </div>
      <!--/row-->
      <div class="row-fluid">
        <div class="span6">
          <label>Unit</label>
          <%= f.text_field :unit, :class => 'span12' %>
        </div>
        <!--/span-->
        <div class="span6">
          <label>Street</label>
          <%= f.text_field :street, :class => 'span12' %>  
        </div>
        <!--/span-->
      </div>
      <!--/row-->
      <div class="row-fluid">
        <div class="span6">
          <label>State</label>
          <%= f.text_field :state_id, :class => 'span12' %>
        </div>
        <div class="span6">
          <label>City</label>
          <%= f.text_field :city_id, :class => 'span12' %>
        </div>
      </div>
      <div class="row-fluid">
        <div class="span6">
          <label>Unit</label>
          <%= f.text_field :unit, :class => 'span12' %>
        </div>
        <!--/span-->
        <div class="span6">
          <label>Postal code</label>
          <%= f.text_field :postal_code, :class => 'span12' %>
        </div>
        <!--/span-->
      </div>
      <!--/row-->           
      <div class="row-fluid">
        <div class="span6">
          <label>Contact no</label>
          <%= f.text_field :contact_no_1, :class => 'span12' %> 
        </div>
        <!--/span-->
        <div class="span6">
          <label>Contact no 2</label>
          <%= f.text_field :contact_no_2, :class => 'span12' %> 
        </div>
        <!--/span-->
      </div>
      <!--/row-->           
      <div class="row-fluid">
        <div class="span6">
          <label>Contact no 3</label>
          <%= f.text_field :contact_no_3, :class => 'span12' %> 
        </div>
        <!--/span-->
        <div class="span6">
          <label>Fax no</label>
          <%= f.text_field :fax_no, :class => 'span12' %> 
        </div>
        <!--/span-->
      </div>                       
    </div>
  </div>
  <div class="form-actions">
    <%= f.submit nil, :class => 'btn btn-primary' %>
    <%= link_to 'Cancel', drivers_path, :class => 'btn' %>
  </div>
  <!--/row-->
  <% end %>
</div>
<!--/.fluid-container-->
